package org.jeecg.modules.complain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.system.entity.BaseEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 报修处理
 * @Author: jeecg-boot
 * @Date:   2019-07-29
 * @Version: V1.0
 */
@Data
@TableName("prj_repair")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="prj_repair对象", description="报修处理")
public class Repair extends BaseEntity {
    
	/**id*/
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "id")
	private String id;
	private String tenantId;
	/**保修流程定义id*/

    @ApiModelProperty(value = "保修流程定义id")

	private String configId;
	/**报修人id*/

    @ApiModelProperty(value = "报修人id")
	private String userId;
	/**报修人姓名*/
	@Excel(name = "报修人姓名", width = 15)
    @ApiModelProperty(value = "报修人姓名")
	private String userName;
	/**报修状态*/
	@Dict(dicCode = "repair_status")

    @ApiModelProperty(value = "报修状态")
	private Integer status;
	/**报修单号*/
	@Excel(name = "报修单号", width = 15)
    @ApiModelProperty(value = "报修单号")
	private String no;
	/**部门*/
	@Excel(name = "部门", width = 15)
	@ApiModelProperty(value = "部门")
    @Dict(dicCode = "id",dictTable = "sys_depart",dicText ="depart_name")
	private String departId;
	/**部门*/
	@Excel(name = "项目", width = 15)
	@ApiModelProperty(value = "项目")
	@Dict(dicCode = "id",dictTable = "base_project",dicText = "name")
	private String projectId;
    @Dict(dicCode = "id",dictTable ="base_floor" ,dicText = "name")
	private String floorId;
	/**报修对应的房间*/
	@Excel(name = "报修对应的房间", width = 15)
    @ApiModelProperty(value = "报修对应的房间")
	@Dict(dicCode = "id",dictTable="base_room",dicText="name")
	private String roomId;
	/**业主id*/
	@ApiModelProperty(value = "业主id")
	private String customerId;
	/**报修号码*/
	@Excel(name = "报修号码", width = 15)
    @ApiModelProperty(value = "报修号码")
	private String mobile;
	/**报修日期*/
	@Excel(name = "报修日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "报修日期")
	private Date repairDate;
	/**设备码*/

    @ApiModelProperty(value = "设备码")
	private String equipmentCode;
	/**设备名称*/

    @ApiModelProperty(value = "设备名称")
	private String equipmentName;
	/**报修图片*/

    @ApiModelProperty(value = "报修图片")
	private String attachFile;
	/**详细说明*/

    @ApiModelProperty(value = "详细说明")
	private Object contents;
	/**报修区域*/

    @ApiModelProperty(value = "报修区域")
	@Dict(dicCode = "repair_area")
	private Integer repairArea;
	@Excel(name = "报修区域", width = 15)
    @TableField(exist = false)
	private String areaName;
	@TableField(exist = false)
    @Excel(name = "报修状态", width = 15)
    private String repairStatusName;
	/**报修方式*/
	@Excel(name = "报修方式", width = 15)
    @ApiModelProperty(value = "报修方式")
	@Dict(dicCode = "repair_way")
	private String repairWay;
	/**维修预约开始时间*/
	@Excel(name = "维修预约开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss" )
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "维修预约开始时间")
	private Date bespeakFromTime;
	/**维修预约结束时间*/

	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "维修预约结束时间")
	private Date bespeakToTime;
	/**订单编号*/

    @ApiModelProperty(value = "订单编号")
	private String orderSn;

	/**是否超时标记*/

    @ApiModelProperty(value = "是否超时标记")
	private String overTimeFlag;
	/**创建者*/

    @ApiModelProperty(value = "创建者")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新者*/

    @ApiModelProperty(value = "更新者")
	private String updateBy;
	/**业主姓名*/

	@ApiModelProperty(value = "业主姓名")
	private String customerName;
	/**业主手机号*/

	@ApiModelProperty(value = "业主手机号")
	private String customerPhone;
	/**部位ID*/

	@ApiModelProperty(value = "部位")
	@Dict(dicCode = "id",dictTable = "prj_repair_part",dicText = "repair_part")
	private String repairPartId;
	/**更新时间*/

	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
	/**备注信息*/

    @ApiModelProperty(value = "备注信息")
	private String remarks;
	/**删除标记*/

    @ApiModelProperty(value = "删除标记")
	private String delFlag;
	@TableField(exist = false)
	private String repairNo;
	@TableField(exist = false)
	private RepairStatus repairStatus ;
	@TableField(exist = false)
	private RepairCharge repairCharge ;
	@TableField(exist = false)
	private Double repairMaterialFee;
	@TableField(exist = false)
	private Double repairManHourfee;
	@TableField(exist = false)
	private String handName;
    @TableField(exist = false)
	private String handId;
	@TableField(exist = false)
	private String handMobile;
    @TableField(exist = false)
	private  String roomInfo;
    @TableField(exist = false)
	private Integer confirmPay;
    @TableField(exist = false)
	private Integer isPay;
    @TableField(exist = false)
    private List<RepairStatus> repairStatusList;
    @TableField(exist = false)
	private Integer returnRepair;
    @TableField(exist = false)
	private String btn;
    @TableField(exist = false)
	private String repairWorkTime;
    @TableField(exist = false)
	private String projectName;

}
